import Vue from 'vue'
import App from './App'

// 分页

global.$limit = 10;
global.$userId = 'global_userId'

// 加载更多
global.$loadMoreStatus = {
	more: 'more',
	loading: 'loading',
	noMore: 'noMore'
}

// 音频组件
import audio from './util/audio.js';
// 扫码成功
Vue.prototype.$playScanSuccess = audio.playScanSuccess;
// 扫码失败
Vue.prototype.$playScanFail = audio.playScanFail;

// 刷新页面
global.$refresh = false;

// APP是否强制更新
Vue.prototype.$updateForce = false

/** API **/
import Api from './api';
Vue.prototype.$api = Api;
// 通讯地址
global.$host = 'http://localhost:8080/api';

// 工具类
require('./util');

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
